#include "header.h"

void Queue::Push()
{
	int _val;

	cout<<"Push <-- ";
	cin>>_val;

	value = _val;
	Queue::rear++;
}
void Queue::Pop()
{
	if(Queue::rear > Queue::front){
		cout<<"Pop --> "<<value<<endl;
		Queue::front++;
	}
	else
	{
		ErrorMsg();
	}
}
void Queue::Top() const
{
	if(Queue::rear > Queue::front){
		cout<<"Top --- "<<value<<endl;
	}
	else
		ErrorMsg();
}

void Queue::ErrorMsg() const
{
		cout<<"Queue is Empty!"<<endl;
}

int Queue::rear = 0;
int Queue::front = 0;